﻿<Page x:Class="NewMarkersSample.Pages.LiveTooltipPage"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
	  xmlns:d3="http://research.microsoft.com/DynamicDataDisplay/1.0"
    Title="LiveTooltipPage">
	<Grid>
		<TextBlock VerticalAlignment="Top" HorizontalAlignment="Center" Margin="0,50,0,0"
				   FontSize="20">
			<TextBlock>Try to edit the text in <Bold>TextBox</Bold> in the middle.</TextBlock>
			<TextBlock>Or simply move mouse over it.</TextBlock>
		</TextBlock>

		<Rectangle Fill="Orange" Stroke="Red" StrokeThickness="1" Margin="10" Width="150" Height="200"
				   d3:LiveToolTipService.ToolTip="Tooltip"
				   />

		<TextBox Name="textBox" MinWidth="10" MinHeight="10" MaxWidth="100" MaxHeight="100">
			<d3:LiveToolTipService.ToolTip>
				<d3:LiveToolTip Content="{Binding Text, ElementName=textBox}" Background="LightGoldenrodYellow"/>
			</d3:LiveToolTipService.ToolTip>
		</TextBox>
	</Grid>
</Page>
